package com.jtcoding.distributedlock.dao;

import com.jtcoding.distributedlock.model.Seckill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author jason.tang
 * @Date 2020/01/23 22:06
 * @Desc
 */

@Mapper
public interface SeckillDao {

    Seckill getSeckillDetail(Integer seckillNum);

    int updateSeckillSold(@Param("seckillNum") Integer seckillNum, @Param("currentSold") int currentSold);
}
